<?php

class Back_Form_Liens extends Jnd_Form
{

    protected $_utilisateurs = array();

    public function __construct ($decorateur = "Formulairejndpro", $options = null)
    {
        if (isset($options["utilisateurs"])) {
            $this->_utilisateurs = $options['utilisateurs'];
        }
        parent::__construct($decorateur, $options);
        $this->setElementDecorators(
                array(
                        "$decorateur"
                ), array(), false);
    }

    public function init ()
    {
        $this->setAction('/back/liens/editer');
        $this->setName("liens");
        $this->setMethod("post");
        $this->addAttribs(
                array(
                        "class" => "cssform"
                ));
        
        $champ = new Zend_Form_Element_Hidden("id");
        $champs[] = $champ;
        
        $champ = new Zend_Form_Element_Text("nom");
        $champ->setLabel(__("Titre"));
        $champ->setRequired(true);
        $champs[] = $champ;
        
        $champ = new Zend_Form_Element_Textarea("url");
        $champ->setLabel(__("Url"));
        $champ->setRequired(true);
        $champs[] = $champ;
        
        $this->addElements($champs);
    }
}

